//
//  TabBarController.swift
//  DaRings
//
//  Created by 尹琼 on 2022/12/12.
//

import UIKit


class TabBarController: ESTabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()

       
        if #available(iOS 13.0, *) {
            overrideUserInterfaceStyle = .light
        } 
    }
    
    
    open override var preferredStatusBarStyle: UIStatusBarStyle {
     
        return selectedViewController?.preferredStatusBarStyle ?? .default
    }
    
    
    override var shouldAutorotate: Bool {
        
        return selectedViewController?.shouldAutorotate ?? false
    }
    
    override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
        
        return selectedViewController?.supportedInterfaceOrientations ?? .portrait
    }
    
    override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation {
        
        return selectedViewController?.preferredInterfaceOrientationForPresentation ?? .portrait
        
    }
    
   

}
